package hlhj.fhp.drawskin

import android.content.Intent
import android.webkit.JavascriptInterface
import android.widget.Toast
import com.tenma.ventures.base.TMWebActivity

/**
 * Created by Never Fear   on 2018\11\14 0014.
Never More....
 */
class WebActivity :TMWebActivity() {

    @JavascriptInterface
    open fun goLogin(){
        Toast.makeText(this,"用户信息过期，重新登录",Toast.LENGTH_SHORT).show()
        val action = packageName + ".usercenter.login"
        val intent = Intent(action)
        startActivity(intent)
        finish()
    }
    @JavascriptInterface
    open fun close(){
        finish()
    }
}